<?php


namespace app\api\model;


use think\Model;

class DistributionConfig extends Model
{
    use PaginatePassPage;
    protected $table = 'jxc_distribution_config';
    protected $type = ['commission' => 'json','applicable_commodity_category' => 'json', 'applicable_user_category' => 'json'];
    protected $autoWriteTimestamp = true;


    public function qualifications()
    {
        return $this->hasMany(DistributionQualification::class, 'config_id');
    }
}